package com.chenyongjing.design.pattern.visitor.general;

/**
 * @Author chen
 * @Date 2022/12/7 22:25
 */
public class Test {
    public static void main(String[] args) {
        IVisitor concreteElementA = new ConcreteVisitorA();
        IVisitor concreteElementB = new ConcreteVisitorB();
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.accept(concreteElementA);
        objectStructure.accept(concreteElementB);
    }
}
